<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*{margin:0;padding:0;}

</style>
</head>

<body class="page1">
	<div class="username current">111</div>
    <span class="current">aaa</span>
    <div class="username">222</div>
    <span class="current">bbb</span>
    <div class="username current">333</div>
    <span class="current">ccc</span>
    <ul id="myUl">
    	<li class="aaa ggg">1</li>
        <li class="bbb">2</li>
    </ul>
    <script>
    	console.log(document.getElementsByClassName('current username'));
		
		console.log(document.getElementById('myUl').getElementsByClassName('aaa ggg'));
    </script>
</body>
</html>
